import request from '@/utils/request'

//用户信息删除
export function UserInfoDelete(data) {
  return request({
    url: `/UserManager/UserInfo/UserId=${data.UserId}`,
    method: 'delete',
    data,
  })
}
//用户信息编辑
export function Renew(data) {
  return request({
    url: '/UserManager/UserInfo/Renew/',
    method: 'post',
    data,
  })
}
//用户信息添加
export function Newly(data) {
  return request({
    url: '/UserManager/UserInfo/Newly/',
    method: 'post',
    data,
  })
}
//角色信息获取
export function RoleManagerInfo(params) {
  return request({
    url: `/UserManager/RoleManager/Index=${params.Index}&Count=${params.Count}&MatchString=${params.Matching}`,
    method: 'get',
    params,
  })
}
//客户信息 新增
export function CNewly(data) {
  return request({
    url: '/UserManager/CustomInfo/Newly/',
    method: 'post',
    data,
  })
}
//客户信息获取
export function CustomInfo(params) {
  return request({
    url: `/UserManager/CustomInfo/Index=${params.Index}&Count=${params.Count}&MatchString=${params.MatchString}`,
    method: 'get',
    params,
  })
}
//客户信息修改
export function CRenew(data) {
  return request({
    url: '/UserManager/CustomInfo/Renew/',
    method: 'post',
    data,
  })
}
//删除客户信息
export function CustomInfoDelete(data) {
  return request({
    url: `/UserManager/CustomInfo/CustomId=${data.CustomId}`,
    method: 'delete',
    data,
  })
}
export function RRenew(data) {
  return request({
    url: '/UserManager/RoleManager/Renew',
    method: 'post',
    data,
  })
}
export function RNewly(data) {
  return request({
    url: '/UserManager/RoleManager/Newly/',
    method: 'post',
    data,
  })
}
